
* This do-file runs the vote regressions at the individual level on Europe, based on Eurobarometer data

* NU* are region fixed effects

* trendNU* are region-specific trends

* COU* are country effects

* YE* are year effects


use DB_For_Attitudes_Regressions_Europe.dta,clear


**************************
* Figure 2 and Table A38 *
**************************

ivreg2 serious female age high_edu NU* trendNU* (trade_exposure_tot=iv_trade_exposure_tot) [pweight=weight], first cluster(nuts2_year) 

ivreg2 serious female age high_edu NU* trendNU* (trade_exposure_tot int_female=iv_trade_exposure_tot iv_int_female) [pweight=weight], first cluster(nuts2_year) 

ivreg2 serious female age high_edu NU* trendNU* (trade_exposure_tot int_high_edu=iv_trade_exposure_tot iv_int_high_edu) [pweight=weight], first cluster(nuts2_year) 

ivreg2 serious white_collar female age high_edu NU* trendNU* (trade_exposure_tot int_white_collar=iv_trade_exposure_tot iv_int_white_collar) [pweight=weight], first cluster(nuts2_year) 

ivreg2 serious blue_collar female age high_edu NU* trendNU* (trade_exposure_tot int_blue_collar=iv_trade_exposure_tot iv_int_blue_collar) [pweight=weight], first cluster(nuts2_year) 

ivreg2 serious unemployed female age high_edu NU* trendNU* (trade_exposure_tot int_unemployed=iv_trade_exposure_tot iv_int_unemployed) [pweight=weight], first cluster(nuts2_year) 

ivreg2 serious student female age high_edu NU* trendNU* (trade_exposure_tot int_student=iv_trade_exposure_tot iv_int_student) [pweight=weight], first cluster(nuts2_year) 

ivreg2 serious retired female age high_edu NU* trendNU* (trade_exposure_tot int_retired=iv_trade_exposure_tot iv_int_retired) [pweight=weight], first cluster(nuts2_year) 

ivreg2 serious young female age high_edu NU* trendNU* (trade_exposure_tot int_young=iv_trade_exposure_tot iv_int_young) [pweight=weight], first cluster(nuts2_year) 

ivreg2 serious old female age high_edu NU* trendNU* (trade_exposure_tot int_old=iv_trade_exposure_tot iv_int_old) [pweight=weight], first cluster(nuts2_year) 


**************************
* Figure 2 and Table A39 *
**************************

ivreg2 can_boost female age high_edu NU* trendNU* (trade_exposure_tot=iv_trade_exposure_tot) [pweight=weight], first cluster(nuts2_year) 

ivreg2 can_boost female age high_edu NU* trendNU* (trade_exposure_tot int_female=iv_trade_exposure_tot iv_int_female) [pweight=weight], first cluster(nuts2_year) 

ivreg2 can_boost female age high_edu NU* trendNU* (trade_exposure_tot int_high_edu=iv_trade_exposure_tot iv_int_high_edu) [pweight=weight], first cluster(nuts2_year) 

ivreg2 can_boost white_collar female age high_edu NU* trendNU* (trade_exposure_tot int_white_collar=iv_trade_exposure_tot iv_int_white_collar) [pweight=weight], first cluster(nuts2_year) 

ivreg2 can_boost blue_collar female age high_edu NU* trendNU* (trade_exposure_tot int_blue_collar=iv_trade_exposure_tot iv_int_blue_collar) [pweight=weight], first cluster(nuts2_year) 

ivreg2 can_boost unemployed female age high_edu NU* trendNU* (trade_exposure_tot int_unemployed=iv_trade_exposure_tot iv_int_unemployed) [pweight=weight], first cluster(nuts2_year) 

ivreg2 can_boost student female age high_edu NU* trendNU* (trade_exposure_tot int_student=iv_trade_exposure_tot iv_int_student) [pweight=weight], first cluster(nuts2_year) 

ivreg2 can_boost retired female age high_edu NU* trendNU* (trade_exposure_tot int_retired=iv_trade_exposure_tot iv_int_retired) [pweight=weight], first cluster(nuts2_year) 

ivreg2 can_boost young female age high_edu NU* trendNU* (trade_exposure_tot int_young=iv_trade_exposure_tot iv_int_young) [pweight=weight], first cluster(nuts2_year) 

ivreg2 can_boost old female age high_edu NU* trendNU* (trade_exposure_tot int_old=iv_trade_exposure_tot iv_int_old) [pweight=weight], first cluster(nuts2_year) 


**************************
* Figure 2 and Table A40 *
**************************

ivreg2 income_insufficient female age high_edu COU* (trade_exposure_tot=iv_trade_exposure_tot) [pweight=weight], first cluster(country)

ivreg2 economy_worse female age high_edu NU* YE* (trade_exposure_tot=iv_trade_exposure_tot) [pweight=weight], first cluster(nuts2_year)

ivreg2 environment_priority female age high_edu COU* (trade_exposure_tot=iv_trade_exposure_tot) [pweight=weight], first cluster(country)


**************************
* Figure 2 and Table A41 *
**************************

ivreg2 serious female age high_edu NU* trendNU* (trade_exposure_hi=iv_trade_exposure_hi) [pweight=weight], first cluster(nuts2_year) 

ivreg2 can_boost female age high_edu NU* trendNU* (trade_exposure_hi=iv_trade_exposure_hi) [pweight=weight], first cluster(nuts2_year) 

ivreg2 serious female age high_edu NU* trendNU* (trade_exposure_li=iv_trade_exposure_li) [pweight=weight], first cluster(nuts2_year) 

ivreg2 can_boost female age high_edu NU* trendNU* (trade_exposure_li=iv_trade_exposure_li) [pweight=weight], first cluster(nuts2_year) 

ivreg2 serious female age high_edu NU* trendNU* (trade_exposure_china=iv_trade_exposure_china) [pweight=weight], first cluster(nuts2_year) 

ivreg2 can_boost female age high_edu NU* trendNU* (trade_exposure_china=iv_trade_exposure_china) [pweight=weight], first cluster(nuts2_year) 


*************
* Table A42 *
*************

ivreg2 serious temperature_anomaly female age high_edu NU* trendNU* (trade_exposure_tot=iv_trade_exposure_tot) [pweight=weight], first cluster(nuts2_year) 

ivreg2 serious temperature_anomaly_pos temperature_anomaly_neg female age high_edu NU* trendNU* (trade_exposure_tot=iv_trade_exposure_tot) [pweight=weight], first cluster(nuts2_year) 

ivreg2 serious heat_episode female age high_edu NU* trendNU* (trade_exposure_tot=iv_trade_exposure_tot) [pweight=weight], first cluster(nuts2_year) 

ivreg2 serious dry_spell female age high_edu NU* trendNU* (trade_exposure_tot=iv_trade_exposure_tot) [pweight=weight], first cluster(nuts2_year) 

ivreg2 can_boost temperature_anomaly female age high_edu NU* trendNU* (trade_exposure_tot=iv_trade_exposure_tot) [pweight=weight], first cluster(nuts2_year) 

ivreg2 can_boost temperature_anomaly_pos temperature_anomaly_neg female age high_edu NU* trendNU* (trade_exposure_tot=iv_trade_exposure_tot) [pweight=weight], first cluster(nuts2_year) 

ivreg2 can_boost heat_episode female age high_edu NU* trendNU* (trade_exposure_tot=iv_trade_exposure_tot) [pweight=weight], first cluster(nuts2_year) 

ivreg2 can_boost dry_spell female age high_edu NU* trendNU* (trade_exposure_tot=iv_trade_exposure_tot) [pweight=weight], first cluster(nuts2_year) 


